package com.sx.shop.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Select;

//import org.apache.ibatis.annotations.Select;

import com.sx.shop.entity.*;

public interface UserMapper {
	
	//@Select("")
	public List<User> selectUser(String keyword);

	public int insert(User user);

	public int delete(Integer userId);
	
	@Select("select * from user where id = #{id}")
	public User selectUserById(Integer id);

	public int update(User user);

	@Select("select * from user where username=#{username}")
	public User selectUserByUsername(String useranme);

	public int add(User user);
}